package com.derbysoft.dswitch.adapter.ihg.common.repository.impl;

import com.derbysoft.dswitch.adapter.ihg.common.domain.RatePlan;
import com.derbysoft.dswitch.adapter.ihg.common.repository.RatePlanRepository;
import org.springframework.stereotype.Service;

@Service("ratePlanService")
public class RatePlanRepositoryImpl extends CommonService<RatePlan> implements RatePlanRepository {
    private static final String RATE_PLAN_CODE = "code";

    @Override
    public RatePlan loadByCode(String ratePlanCde) {
        return this.load(RATE_PLAN_CODE, ratePlanCde);
    }
}
